@import url("../../[branding]_components/dealerInteractiveMap.css");

.dealer-map__toolbar {
    background: var(--gray-light-2);
    border-bottom: 0;
}

.dealer-map__search-input::placeholder {
    color: var(--gray-dark-5);
    font-family: var(--font-family-1);
    font-weight: var(--weight-normal);
    opacity: 1;
}

.dealer-map__search {
    height: var(--dim-search-height);
    background: var(--dim-search-bg);
    border: var(--dim-search-border);
    box-sizing: border-box;
}

.dealer-map__search:focus-within {
    border-color: var(--dim-search-focus-border-color);
}

.dealer-map__search-input,
.dealer-map__search-icon {
    height: 100%;
    border: 0;
}

.dealer-map__search-input:focus {
    border: 0;
}

.dealer-map__panel-inner {
    max-width: none;
}

.dealer-map-card {
    padding-inline: max(40px, calc((100% - 720px) / 2 + 40px));
}

.dealer-map-card:not([style*="display: none"]):has(~ .dealer-map-card:not([style*="display: none"])) {
    border-bottom: 1px solid #414141;
}

.dealer-map-card__cta {
    width: auto;
    min-height: var(--button-height-1920);
    height: auto;
}

/* Tabs */
.dealer-map__tab {
    text-transform: none;
    flex: 1;
    width: auto;
}

.dealer-map__tab.is-active {
    font-family: var(--dimap-tab-active-font-family);
    font-weight: var(--dimap-tab-active-font-weight);
    padding-top: 16px;
}

/* Controls */
.dealer-map__select {
    text-transform: none;
    width: 100%;
}

.dealer-map__helper {
    margin-left: auto;
    margin-right: 0;
}

.dealer-map__search-clear {
    display: none;
}

.dealer-map__tabs {
    padding: 0 200px;
    width: 100%;
}

.dealer-map__tabs__border {
    width: 100%;
    display: flex;
}

.dealer-map__control-group,
.dealer-map__search {
    flex: 1 1 0;
    width: auto;
}

.dealer-map-card__icon {
    stroke-width: 1;
    width: 28px;
    height: 28px;
}

.dealer-map-card__address,
.dealer-map-card__phone,
.dealer-map-card__email,
.dealer-map-card__hours-label {
    display: flex;
    align-items: center;
}

/* Wide desktop */
@media (max-width: 1366px) {
    .dealer-map__controls {
        padding: 30px 14px;
        width: 100%;
    }

    .dealer-map__tabs {
        padding: 0 14px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .dealer-map-card {
        padding: var(--dim-card-padding);
    }

    .dealer-map__tab {
        font-size: 16px;
        padding-bottom: 0;
    }

    .dealer-map-card__hours-detail {
        margin-left: 40px;
    }

    .dealer-map-card__title {
        text-align: center;
    }

    .dealer-map__map-container {
        height: 202px;
    }

    .dealer-map__controls {
        flex-direction: row;
        align-items: start;
    }

    .dealer-map-card__footer {
        gap: 18px;
    }

    .dealer-map-card__cta {
        width: 475px;
        margin: 0 auto;
        min-height: var(--button-height-768);
    }

    .dealer-map-card__icon {
        width: 24px;
        height: 24px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .dealer-map__search {
        flex: 0 0 var(--dim-search-height);
        width: 100%;
        min-height: var(--dim-search-height);
    }

    .dealer-map-card__cta {
        width: 320px;
        max-width: 100%;
        min-height: 48px;
        height: 48px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .dealer-map__map-container {
        height: 200px;
    }

    .dealer-map__controls {
        flex-direction: column;
    }

    .dealer-map__control-group {
        width: 100%;
    }
}
